import 'package:flutter/material.dart';
import 'package:zy_pos_demo/datarepository/bean/requestparams.dart';
import 'package:zy_pos_demo/datarepository/remote/remote.dart';
import 'package:zy_pos_demo/pages/loginpage.dart';

class OperatePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    DioHttpHelper()
        .getNumber(
            TakeOutParams(shop_id: LoginPage.loginInfo.res.loginInfo.sid))
        .then((value) {
      print(value.toJson());
    });
    return Container(
      child: GridView(
        gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
          crossAxisCount: 3,
          childAspectRatio: 2,
        ),
        children: <Widget>[
          Icon(Icons.ac_unit),
          Icon(Icons.airport_shuttle),
          Icon(Icons.all_inclusive),
          Icon(Icons.beach_access),
          Icon(Icons.cake),
          Icon(Icons.free_breakfast),
          Icon(Icons.ac_unit),
          Icon(Icons.airport_shuttle),
          Icon(Icons.all_inclusive),
          Icon(Icons.beach_access),
          Icon(Icons.cake),
          Icon(Icons.free_breakfast),
          Icon(Icons.ac_unit),
          Icon(Icons.airport_shuttle),
          Icon(Icons.all_inclusive),
          Icon(Icons.beach_access),
          Icon(Icons.cake),
          Icon(Icons.free_breakfast),
        ],
      ),
    );
  }
}
